/*  1:   */package com.mrd.dolphin.net.mina.codec;
/*  2:   */
/*  3:   */import org.apache.mina.core.session.IoSession;
/*  4:   */import org.apache.mina.filter.codec.ProtocolCodecFactory;
/*  5:   */import org.apache.mina.filter.codec.ProtocolDecoder;
/*  6:   */import org.apache.mina.filter.codec.ProtocolEncoder;
/*  7:   */
/* 13:   */public class PbCodecFactory
/* 14:   */  implements ProtocolCodecFactory
/* 15:   */{
/* 16:   */  private ProtocolEncoder encoder;
/* 17:   */  private ProtocolDecoder decoder;
/* 18:   */  
/* 19:   */  public PbCodecFactory()
/* 20:   */  {
/* 21:21 */    this.encoder = new PbEncoder();
/* 22:22 */    this.decoder = new PbDecoder();
/* 23:   */  }
/* 24:   */  
/* 25:   */  public ProtocolEncoder getEncoder(IoSession session) throws Exception
/* 26:   */  {
/* 27:27 */    return this.encoder;
/* 28:   */  }
/* 29:   */  
/* 30:   */  public ProtocolDecoder getDecoder(IoSession session) throws Exception
/* 31:   */  {
/* 32:32 */    return this.decoder;
/* 33:   */  }
/* 34:   */}


/* Location:           D:\MMOServer\MMOServer\lib\mrd-framework\
 * Qualified Name:     com.mrd.dolphin.net.mina.codec.PbCodecFactory
 * JD-Core Version:    0.7.0-SNAPSHOT-20130630
 */